<div class="full_w">
    <div class="h_title"><?php echo Yii::t('AdmincpModule.admincp', 'Subscribers'); ?></div>
    <h2>Feedback</h2>
    <p>User feedback</p>
       
    <form method="get" id="form" enctype="multipart/form-data">
    <fieldset>
		<legend>Filter</legend>
        <div class="filter-row">
        	<label>Topic: </label>
            <select name="topic" id="topic">
            	<?php foreach($arrTopics as $R):?>
            	<option value="<?php echo $R['topic_id']; ?>"><?php echo $R['topic_name']; ?></option>
                <?php endforeach; ?>
            </select>
        </div>
        <div class="filter-row">
            <label>Created from</label>
            <input tabindex="5" type="text" id="dfrom" name="dfrom" class="datepicker" value="<?php echo $args['created_from']; ?>" />
            <span style="float:left; width:22px; text-align:center; margin-top:6px;">To</span> 
            <input tabindex="6" type="text" id="dto" name="dto" class="datepicker" value="<?php echo $args['created_to']; ?>" />
        </div>        
        <div style="clear:both; text-align:center">
            <input type="submit" value="Search" /> 
            <input type="reset" name="Clear">
        </div>
    </fieldset>			
    </form>
    <div class="entry">
        <div class="sep"></div>
    </div>
    <table>
        <thead>
            <tr>
            	<th scope="col" class="chb"><input type="checkbox" onclick="selectAll(this);"></th>
                <th scope="col"><?php  echo Yii::t('AdmincpModule.admincp', 'Title');?></th>
                <th scope="col" width="10%"><?php  echo Yii::t('AdmincpModule.admincp', 'Created');?></th>
                <th scope="col" width="10%"><?php  echo Yii::t('AdmincpModule.admincp', 'Topic');?></th>
                <th scope="col" width="10%"><?php  echo Yii::t('AdmincpModule.admincp', 'Status');?></th>
            </tr>
        </thead>
            
        <tbody>
        <?php $listStatus = Feedback::getInstance()->_arrStatus; ?>
        <?php if(!empty($arrFeedback)):?>
			<?php foreach($arrFeedback as $i=>$R):?>
            <tr>
                <td class="align-center"><input type="checkbox"></td>
                <td>
                	<strong><a href="<?php echo LINK_ADMINCP_FEEDBACK.'/form/?id='.$R['feedback_id']; ?>" style="text-decoration:none;"><?php echo $R['feedback_title']; ?></a></strong>
                    <p style="margin:0; padding: 2px 0 0;">
                        <a href="<?php echo LINK_ADMINCP_FEEDBACK.'/view/?id='.$R['feedback_id']; ?>"  title="View">View</a> | 
                        <a href="<?php echo LINK_ADMINCP_FEEDBACK.'/delete/?id='.$R['feedback_id']; ?>" title="Delete">Delete</a> 
                    </p>
                </td>
                <td><?php echo $R['feedback_created_date']; ?></td>
                <td><?php echo $R['topic_name']; ?></td>
                <td><?php echo $listStatus[$R['feedback_status']]; ?></td>
            </tr>
            <?php endforeach; ?>
		<?php else: ?>
            <tr>
                <td colspan="7">No data found!</td>
            </tr>
        <?php endif; ?>
        </tbody>
    </table>
    <div class="entry">
        <?php $this->widget('Pagination', array(
			'pages' => $objPages,
		)) ?>
    </div>
</div>